package com.strato.datafactory.v1_0_0.mvc.enhancer;

import java.util.Map;

import com.strato.annotation.osgi.v1_0_0.service.OsgiService;
import com.strato.base.osgi.v1_0_0.BundleUtil;
import com.strato.datafactory.v1_0_0.activator.Activator;
import com.strato.datafactory.v1_0_0.api.DataFactory;
import com.strato.mvc.api.v1_0_0.view.ModelEnhancer;

@OsgiService
public class DataFactoryModelEnhancer implements ModelEnhancer {

	@Override
	public void enhance(Map<Object, Object> model) {
		DataFactory dataFactory=BundleUtil.getCachedService(Activator.getContext(), DataFactory.class, null);
		model.put("dataFactory", dataFactory);
	}

}
